package service.version1;

import dao.version1.UserInfoDao;
import dao.version1.UserInfoHistoryDao;

public class UserService {

    public  void archive(String userid,String username) {
        UserInfoDao needToArchive = new UserInfoDao();
        UserInfoHistoryDao archivingUser = new UserInfoHistoryDao();
        needToArchive.deleteById(userid);
        archivingUser.insert(userid,username);
    }
}
